package vn.smartoffice.promail.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import vn.smartoffice.promail.entity.MailFolder;
import vn.smartoffice.promail.mapper.MailFolderMapper;
import vn.smartoffice.promail.services.BaseService;
import vn.smartoffice.promail.services.MailFolderService;

@Service("mailFolderService")
@Transactional
public class MailFolderServiceImpl extends BaseService<MailFolder, MailFolderMapper> implements MailFolderService {

	@Autowired
	public MailFolderServiceImpl(MailFolderMapper mapper) {
		super(mapper);
	}

	@Override
	public List<MailFolder> findByUserId(long userId) {
		return mapper.findByUserId(userId);
	}

	@Override
	public List<MailFolder> findByParentId(Long parentId) {
		return mapper.findByParentId(parentId);
	}

	@Override
	public MailFolder findByName(String name) {
		return mapper.findByName(name);
	}
	
	

}
